package com.hencoder.plugin

import com.android.build.gradle.BaseExtension;
import org.gradle.api.Project
import org.gradle.api.Plugin

class WmanPlugin implements Plugin<Project> {
    @Override
    void apply(Project target) {
        def extension = target.extensions.create('wman', WmanPluginExtension)
        target.afterEvaluate {
            println "Hi ${extension.name}!"
        }

        def transform = new TransformDemo()
        def baseExtension = target.extensions.getByType(BaseExtension)
        println("bootClassPath ${baseExtension.bootClasspath}")
        baseExtension.registerTransform(transform)
    }
}